changed the testing pins to be the ones actually used.
moved setting wait outside the inner loop.
added print statements for debugging.
updated the pins to those actually used.