I hvnt tried coding yet bcz i cant think anyhting and for wiring it just momentary limit switch with two pins and a led