what can I do to fix this problem?
Start with posting a wiring diagram of your setup, links to all used hardware and the complete code you uploaded to the Arduino. Also it often help if you tell us what kind of Arduino you're using.
what can I do to fix this problem?
Start with posting a wiring diagram of your setup, links to all used hardware and the complete code you uploaded to the Arduino. Also it often help if you tell us what kind of Arduino you're using.