Professional Documents
Culture Documents
Embedded
Embedded
Embedded
HANDS-ON ACTIVITYY:
TEMPERATURE SENSOR AND LDR SENSOR
CPE 400 – CPE41S2
EMBEDDED SYSTEM
• If the value of the LDR is between 200 and 150, the Green LED should light, and the other LEDs
off.
• Else if the value of the LDR is between 100 and 149, the Yellow LED should light, and the other
LEDs off.
• Else the Red LED should light and the other LEDs off.
Source Code:
OUTPUT:
TINCKERCAD LINK:
https://www.tinkercad.com/things/8pdSYy43ZH5-funky-
albar/editel?sharecode=vEfUALRoqeePz5hATr1bd6h3Mn1Wv03v6s1ZfASEcQI