Advanced Train Detection and Gate Control System using ATmega328P and Passive Infrared Motion Sensor | IEEE Conference Publication | IEEE Xplore