The Magnet Sensor detects a magnetic field and returns the strength based on the distance away from the sensor. When the returned value is increasing the sensor is detecting the north pole of the magnet. If the value returned is decreasing then the sensor is detecting the south pole magnet. The sensor value ranges from -340 to +340 where 0 indicates no magnetic field.
Sensor Type: Three Wire Analog Sensor
Dimensions: 32 x 32 x 12 millimeters
Mounting Holes: 24 x 24 millimeters
Power: 5 volts DC, 20 mA max.
Signal Logic Levels: Analog 0 – 5 volts
All the information you need about
Modern Robotics Sensors in one document.