For this lab, you are to construct a mock burglar alarm. Thesystem will have three states, armed, disarmed, and alarm, twoinputs in the form of push buttons, and two outputs in the form ofLEDs.
The system should start in the disarmed state with a green LEDlit. Pressing button 1 moves us to the armed state, pressing button2 (our stand-in for a door contact sensor) does nothing.
In the armed state, the red LED should blink off and on.Pressing button 1 disarms the system and returns to that state.Pressing button 2 transitions the system to the alarm state
In the alarm state, the red LED is solid (not blinking).Pressing button 2 does nothing while pressing button 1 disarms thealarm.
Can someone please create a writing schematic and codein Arduino?