Include a short example on how to use a sensor to trigger a callback function.