At the end of this final project, it is designed a rence functions as a protection for a room. This passing object protection uses a photoelectric sensors. This plan is designed with a simple operation and relatively cheap price. The fence consists of 6 pairs of sensors located on both side of the fence. That serves to detect an object pass. IC logic gates (IC LM 7404 and IC LM 7432) used as a …