Initially I was testing the StateChangeDetection sketch, which worked. Then I swapped the LED for base of a TIP102 transistor which was hooked up to a solenoid and rectifier. It didn't work so I put it back with the LED and it didn't work. Then I connected it to my computer with everything disconnected and it wouldn't recognize. It recognizes my second arduino on COM4, but when I plug in the broken one COM4 dissapears and only COM3 is available, but it gives the error of not being able to locate device.
Also, This is a bit weird, but I've connected the TIP102 in series with the solenoid. But even without power to the base, its allowing electricity to flow. The solenoid is a 12-24V SMC pneumatic sol.
Thanks for the help!