@stark156: Sorry you interpreted my remarks as being rude. You come here on Wednesday, July 24, 2019, and post a question demonstrating your limited "general electrical knowledge." You describe, without providing any details, that you want to use a magnet and an unspecified Hall-effect sensor...