forgot to document sensor.on('ready')