Hi, Can you post a circuit diagram please, so we can see the I/O and power supply connections.
To add code please click this link;
Thanks.. Tom...