Question 2: write a program for smart garage system using:
2 IR obstacle sensor, relay & LCD.
The garage have 25 space to 25 car & have also two doors entrance & exist; first IR sensor on
entrance and second IR sensor on exist. This system counts how many empty spaces for parking.
When the car enters the sensor on entrance activate & the counter decreases, when the car exists the
sensor on exist activate & the counter increase. Use LCD to print how many empty spaces in the
garage, and finally when the garage full the LCD must print this message "Garage Full "and the
relay close to shut down the entrance door.