@bc123 Read and understand the posting rules here.
I know this is your first post here... but how is that? How did you find your last 'programmer' for mys if not here> Just curious.
Post code in code tags (as per the instructions) - i.e. choose the </> in the options above. Then paste 'your' code (if the original code is under any NDS or copyright then you do so at your own risk).
Pictures of the wiring, as installed and wiring diagrams.
Oh, and a full spec of what you expect and how it is all supposed to work would be a good start.
Seasons greetings all the same to you.! ;)
I'm off to drink more alcohol than any sane person would.... :) - Apparently it is 'that' time of year.