Figure 1 4.Front end which includes html page or mobile device having MQTT lens application which includes switch controller for fan and light. In this system, ultrasonic sensor,light dependent resistor and temperature sensor is interfaced with Arduino mega board(ATmega Atmel 328PU). This Arduino mega board is connected to MQTT server via ethernet cable. This will provide connectivity to the server to transmit the data on to the internet. This data then monitored arbitrarily using mobile device or by using MQTT lens application.