I've been struggling with this for the past 4 hours and thought I'd come here begging for help...

So I'm basically trying to set up two different sets of messages based on the moisture level reading ("avg") which are to be toggled back and forth by a momentary switch. My method right now is to have the switches toggle an LED which in turn toggles a set of messages... This is proving to be incredibly frustrating as nothing I've been trying is working.

Do you guys have any ideas for an easier way to do this? I know I'm not doing this the right way... Thank you so much ahead of time to anyone who lends an eye! :*

#define rxPin 30 // rxPin is immaterial - not used - just make this an unused Arduino pin number#define txPin A2 // txPin is the one needed for the LCD - we'll use Digital Pin A0/14 to send serial data to the LCD// mySerial is connected to the TX pin so mySerial.print commands are used// one could just as well use the software mySerial library to communicate on another pin// we're using SoftwareSerial so that we can save pins 0&1 for the BUB

else if ( avg <= 350 && avg > 150 ){ mySerial.print("33333"); delay(5000); mySerial.print("?f"); delay(30); } }If the switch state is LOW when this code is encountered, it will never exit the while loop.

Which switch is supposed to control what is displayed? Is it supposed to display one thing when pressed and another when not, or is each press supposed to change what is displayed?

It would be simple to implement such a feature if you had two functions that could be called, depending on the switch state (or number of presses).