My suspicions are that the D2 pin is either being used for something else, or requires an external pull up because it also serves as the I2C SDA pin.
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