To add more detectors,
- Change the number of sensors/detectors.
const uint8_t maxDetector = 6; // <-- the number of sensors/detectors
- Add the PIN of the detector and the alarm-Lamp.
const uint8_t waterDetectors[] = {A0, A1, A2, A3, A4, A5}; // <-- the PIN of the detector
const uint8_t alarmLamps[] = {2, 3, 4, 5, 6, 7}; // <-- the PIN of the alarm lamp
Finally, please follow the forum role to easily to people to help you. I am also new to Arduino and Forum .
Enjoy Coding, Enjoy Arduino.