ABSTRACT OF INVENTION : Looking at the importance of safety of railway crossings this invention is focused on a safer and labor free function of railway gate. There are more than 34,000 railway crossings in India today, out of which more than 12,000 are not attained by operator. More than 60% of accidents take place at such inhumane railway gate crossings. The above problem can be solved with automatic gate operating device. In case of railway crossing gates this device would be the best option as automatic railway crossing device. This invention is on automatic railway crossing with or without human operator to execute a safer crossing function. This device is more convenient, eco friendly, reliable and efficient as this works on solar energy or just 12 V D.C supplies. Economical innovation with affordable cost of safe railway and vehicle crossing with 3000 INR. The human errors are eliminated due to use of electronic circuits. The cars crossing roads are alerted two times, initially the signaling device i.e the signals and siren gets into action which alerts drivers about the arriving train and then after a specific time the gates get closed. The timing of the gates opening and closing can be controlled using potentiometer provided in timer circuit. This circuit can also be used near road crossings and automatic door operation because of it\\\\\\\'s reliability and cost factor. It\\\\\\\'s very cheap as compared to today\\\\\\\'s latest sensors used but at the same time it\\\\\\\'s very reliable too. The present invention is automatic gate operating device and can be deal with auto functioning and controlling the crossing gates. This is the perfect automatic gate operating device with respect to the railway crossing gates which provides easy and safe passing of railways and vehicles on roadways. In this the combination of two different circuits is innovated and working of these circuits is driven by solar panel or 12V D.C supply before arrival of train near railway crossing. The first circuit is LDR (Light Dependent Resistor) to sense the change in intensity of light falling on it. This ability of LDR is used to control gates near railway crossings. Further the LDR is connected to a timer IC (Integrated Circuit) for the sake of controlling the output timing. Whenever the LDR circuit gives high output, the output is kept constant (i.e high) till the timing set in timer circuit. The complete ckt can run on solar panels and has good efficiency with no pollution.