Q2. Write an 8051 C program that uses 3 temperaturesensors (TS1, TS2, TS3),  3 LEDs (GreenLED, BlueLED andRedLED) and 1 buzzer (BUZZ). Monitor the temperature sensors suchthat whenever any of the sensor goes high, the buzzer will producea sound and at the same time, its corresponding LED blinks 3 times.You may use any of the I/O Port Pins.   Â
SOLUTION:
C PROGRAM