Add script to create a sleep sensor.