no need to logged the 0th reading,  only from 1st second. and if
duration is 0, will not store sensor data.