Ooof, ouch, that sucks. I printed mine with a brim just to be sure that wouldn't happen, should probably have a note about that.
Might be time to invest in Octoprint and The Spaghetti Detective if you can get a Raspberry Pi or a dedicated computer to run with your printer. Saved me a lot of plastic when it caught and stopped a failed print.
I personally couldn't find all the parts needed for the light sensor for a decent price here in Canada without waiting months from China or ridiculous shipping prices from USA, so I decided on the pressure switches. It takes a bit of searching to find something with a very low actuation pressure to be used with cases, but they're widely available and cheaper overall.
I use these.
With the lights, it should just work if you got decent components. With the switch, you need to make sure the arm/lever is the right size and shape to fit properly and won't get stuck or anything.
One thing you may need to watch out for is the thin slots for the screws. The first version I made snapped because they were thin, but the switch would still work. I beefed it up a bit and so far it hasn't broken. I also bought extra switches and will just keep them attached to whatever size tubes I need as I'm not doing a lot of calibres.
I don't think swapping the printed connectors out will be an issue, worst case you print off the small light ones again. The lights themselves should be cheap enough to just leave them permanently attached to the drop tube and use a wiring connector to swap out instead if you were worried.