Flash the Arduino with the following sketch. This is also included as a file attached to the project. int last_level = 0; bool last_state = false; bool stable = false; int count = 0; const int cutoffs[198] = {/* 1*/ 833, 831, /* 2*/ 825, 823, /* 3*/...