d) A door sensor is connected to P1.1 and a buzzer to P1.7. Write an 8051 C program to monitor the sensor and when it opens (0′) sound the buzzer by sending a square wave of 50% duty cycle using the delay routine of 01. Show transcribed image text d) A door sensor is connected to P1.1 and a buzzer to P1.7. Write an 8051 C program to monitor the
OR
OR