Konnect Circuit to detect electrical connection to Part
Jeremy on YouTube made a great video. His comments include more info. He was kind enough to share the C Program Here.