Scenario:
-Rtc, dht22, ultrasonic, rgb, ph and ec probes are all the sensors that I will use
-I want to display all the sensor readings in my LCD with keypad shield.
-the default display should be the time and date
-I press the right button, the LCD will display the temperature and humidity
-Another press from the right button, RGB reading will show.
-Another press and the pH and EC reading will show.
Can someone help me how to make a program that will satisfy the above condition? By the way, I am using arduino mega.
Thanks in advance