# Inductive proximity sensor false readings

**URL:** <https://forum.arduino.cc/t/inductive-proximity-sensor-false-readings/891415>\
**Category:** General Guidance\
**Created:** [August 1, 2021, 11:30pm UTC](https://forum.arduino.cc/t/inductive-proximity-sensor-false-readings/891415 "2021-08-01T23:30:44Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [August 2, 2021, 12:18pm UTC](https://forum.arduino.cc/t/inductive-proximity-sensor-false-readings/891415/18 "2021-08-02T12:18:58Z")

</div>

> [@xgr1mx](#):
>
> if I were to use a Raspberry Pi does it have the functionality to use INPUT\_PULLUP ?

I don't know, but it probably does. In any case, INPUT\_PULLUP is merely a convenience. You can just use a pull-up resistor.

> [@Idahowalker](#):
>
> putting 12V onto the GPIO pins of a RPI will destroy the RPi.

Which is why the diode method prevents such damage. 🕶

Fully protected circuit:  
[![](https://europe1.discourse-cdn.com/arduino/original/4X/c/1/c/c1c394478bd89f2eaf6b77c1425ac9e1c1baeb1a.png)](https://forum.arduino.cc/t/triggering-arduino-with-camera-sync-cord-or-other-approaches/630326/6)  
Same circuit applies to Pi or ESP with 3.3 V

---

_[View the full topic](https://forum.arduino.cc/t/inductive-proximity-sensor-false-readings/891415)._
