Related Articles

Responses

  1. Good idea! If I read the code correctly, the moisture/alarm screens will show actually show the latest sensor reading *while* the button is being pressed. If you’re wanting to switch between moisture and alarm modes, you could create a new variable called, say, mode then have new “When Button A pressed” code blocks to set mode to say ‘moisture’, then in your main loop check if mode == ‘moisture’ do the moisture stuff. That would then give you continuous sensor updates rather than only while the button is being pressed.

    But I like the idea – keep on iterating on it! You could even have a setup screen where a user can set their alarm threshold for moisture (for different plants or whatever)