The magnetic sensor detects whether there is a magnet around.

Magnetic Sensor - 图1

Real-life example

A sweeping robot uses the magnetic field detection function in its virtual wall to determine whether it can go through.

Magnetic Sensor - 图2

Specifications

  • Dimensions: 24 × 20 (mm)
  • Detection distance: <1 cm
  • Operating current: 15 mA