General purpose Arduino library for timed sensing