What, no one loves lights as much as I do?
Ok, im a bit of a noob here myself, but considering how i understand how the arduino works, i would split this into two sections.first: get the data into the arduino.second: THEN decide what you want to do with the data.
also, the mega has a whole 15 Analogue ins, so ignore the bit about reducing it to 5.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16