Updated example to include sending measurements on an interval and
alerts at the press of a button.