Write a program that uses a motion sensor, an RGB LED, and a photoresistor (light sensor) as follows: • When motion is d
Posted: Fri Apr 29, 2022 6:39 am
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.