This paper presents the key points in implementing automatic lighting mechanism on highway roads with the help of moving object detection in urban cities during midnight. The objective of the object detection system will be to detect objects confined in a particular area. The detection system will thus require important information like speed of moving objects, size of objects and number of vehicles on the road. The lighting system is responsible for switching off the lights in a particular area where the object detection monitoring system evaluates to a minimum threshold value. The lighting system will be active 350m to direction of the object moving in a particular direction.