added periodic function to check for voltage measurement from the sparkcore