M18 4-pin ultrasonic distance sensors use sound waves to detect objects regardless of color or surface finish, with an M18 threaded barrel and 4-pin M12 connector for power and analog or digital output.
| Pin | Name | Function | Type |
|---|---|---|---|
| 1 | VCC | Supply voltage 15-30V brown | PWR |
| 2 | OUT2 | Second output or teach input white | I/O |
| 3 | GND | Ground blue | GND |
| 4 | OUT1 | Primary output analog or digital black | ADC |