Normally, an unused analog pin is called a floating pin.
A floating pin can pick up tiny electrical signals from:
When a person touches the A0 pin, the analog value changes.
The Arduino reads this value using:
analogRead(A0);
If the value becomes greater than 500:
If the value is less than 500: