This paper deals with automatic railway gate operation implemented in unmanned level crossings at remote areas. Detection of train approaching the gate can be sensed by means of sensors placed on side of the track.