Changed the sensor reading to take 5000 measurements
Sanitized inputs (pressing keys during reading shouldn't do anything)