Circuits / Sensors
Arduino UNO: KY-035 gaussmeter
The linear Hall sensor is ratiometric: its output is about half the supply plus about 1.4 mV per gauss. Its zero varies from part to part (2.25 to 2.75 V), so the program measures it at start-up (the average of 32 readings) with no magnet near and turns the difference back into gauss

Tap a part to see its voltages and currents. It is a model, not a measurement.
What do you need?
- Development board Arduino UNOAliExpress Amazon
- Linear Hall sensor KY-035AliExpress Amazon
- Jumper wires × 4AliExpress Amazon
- BreadboardAliExpress Amazon
The AliExpress links are affiliate links: if you buy through them ohmio.dev gets a commission, at no extra cost to you. Affiliate links
This page is a guide: the numbers come from a simulation, and real parts vary. Check your parts before you power the circuit. Safety and responsibility
How does an Arduino measure a magnetic field in gauss?
The KY-035 module carries a linear Hall sensor, a 49E. With no magnet its output sits at half the supply, 2.49 V in the model. A south pole pushes it up and a north pole pulls it down by about 1.4 mV for each gauss in this model: it gives 2.63 V at +100 G and 2.35 V at −100 G. A real sensor's zero can lie anywhere from 2.25 to 2.75 V, so the program measures it at start-up, as the average of 32 readings with no magnet near, and subtracts it: gauss = (volts − zero) / 0.0014. The serial monitor shows 101.24 with +100 G and -97.75 with −100 G, since each converter step is about 3.5 G. Keep the magnet away while the Arduino starts: with one near at start-up, a field of zero reads about −98 G. The module's three pins are S, + and −; check their order on your board.
Values from the Protoboard ISO simulation: a model, not a bench measurement.
Hear about the next circuit
One email when a new circuit is out, about twice a month. Nothing else.