handling timestamps on button sensors too