=Electronics Hardware Questions=

Q:
To enter the office people have to pass through the corridor. Once someone
gets into the office the light turns on. It goes off when noone is present in the
room. There are two registration sensors in the corridor. Build a state
machine diagram and design a circuit to control the light.