Write a program that uses a motion sensor, an RGB LED, and a photoresistor (light sensor) as follows: • When motion is d
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a program that uses a motion sensor, an RGB LED, and a photoresistor (light sensor) as follows: • When motion is d
Write a program that uses a motion sensor, an RGB LED, and a photoresistor (light sensor) as follows: • When motion is detected: o If the room is dark then the RGB LED will show the yellow color. o If there is light in the room then the RGB LED will show the white color. When there is no motion the RGB LED will be off and o If the room is dark then “Good night” will be displayed in the serial monitor once. o If there is light in the room then “No one here” will be displayed in the serial monitor once.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!