You can know check the state of the Arduino

I'm thinking about using this code to make an Arduino weather station.
I added te ability to check the state of something as a start.