That’s why we need to see your actual wiring, schematic, and software sketch.
Always blame yourself first.