I think you should plug it in to A1 to match your code.
You talk about using a Mega but your f*ing diagram shows an UNO.
Can you post a picture of your hardware?
I think you should plug it in to A1 to match your code.
You talk about using a Mega but your f*ing diagram shows an UNO.
Can you post a picture of your hardware?