Clean up state diagram to debug analog sensor readouts