Self Watering plant project - Blynk menu

Hi, I am building a self watering plant project which requires the pump to automatically water the plant depending on moisture levels. We have added the Blynk app into our code which will allow us to view the values on the app. We have successfully got it to view the moisture and light levels as well as temperature.

We are now trying to add a menu feature to the app which should allow us to pick between 2 or 3 different plants (they all will have different moisture levels). We want it so that the user will pick which plant they will be using and then it will run the correct code suitable for each plant.

Can someone please help me with this?

Thanks

Please post the code You've got. How else could any helper point into it?

Put the process handling a plant into a function. Then call the function with a parameter telling witch plant to go for.

please can you explain this further? i dont understand

I’m curious… if it’s an automatic system, why do you have to do anything… much less wireless/remotely ??

You have a code operating on one "flower pot". Put that code into a function that handles potNr1, potNr2, potNr3.
loop would handle the plant selection and use the desired plant when calling the function.

Note the remark from @ lastchancename in reply #6.