Use a separate timer for polling the sensor. Fixes #2.