התרחיש
An Arduino reads an LDR for ambient light and a PIR for motion. If it's dark and motion is detected, the light turns on for 5 minutes, then turns off. Otherwise, no action is taken.
מה מופיע בתרשים הזה
פענחו את ההחלטות שמאחוריו.
01
Is the ambient light below threshold (dark)?
02
Is motion detected by the PIR sensor?
Use this flowchart when designing a simple, event-driven smart lighting system that reacts to room occupancy only in low-light conditions.