36RVLNYE36UUJ6DYRNVVE4UEQ4YPQPRF645R5TB3P4TSQVWD3YPAC
if r1.abs_diff(average) > R_SMALL.abs_diff(average) {
if r1.abs_diff(average) > R_MEDIUM.abs_diff(average) {
log!("Switching to medium resistance.");
r1 = R_MEDIUM;
relay1.set_high();
arduino_hal::delay_ms(1000);
} else if r1.abs_diff(average) > R_SMALL.abs_diff(average) {
log!("Switching to small resistance.");