How do magnetic switches work?
I’m looking for a low cost magnetic switch for a hobby project that will turn on when put in contact with steel. I was thinking of using a window or door security switch but I don’t really know how those work. Do those consist of a magnet side and a metal side or two magnets? Should it work for my purposes?
This question is in the General Section. Responses must be helpful and on-topic.