Has anyone encountered this issue before?
happens frequently.
usual causes :-
the code you did not post is no good.
the device is wired incorrectly. ie not as per the schematic you did not post
the power supply is inadequate.
the device has been damaged by poor handling.