Get the value of a sensor at a specific time

This post here will help.