Sleep sensor script now only creates once.