Sensor for Smart home