A turbidity sensor runs on 5 V and outputs up to about 4.5 V, but an ESP32-C3's pins only take 3.3 V. Here is why it needs a voltage divider, how to wire it, and the checks to do before you plug in USB.

Free weekly email with the week's posts, videos and one tip: https://chartmann1590.github.io/homelab-the-right-way/newsletter/

Disclosure: this is a Homelab the Right Way article by Charles Hartmann, written with AI help and edited by him; the setup described is his own.

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 day ago (1 child)

I've also been taking 5v on esp32 and esp8266 pins for years without any issues whatsoever.

The article also claims DS18B20 are happy with 3.3v - technically yes, but if you have any long runs they are much more reliable at 5v. Yes every time I refer to a LLM when wiring them, it constantly makes the same point this article does, which is that dividers must be used. I think that lends weight to your claim that it's AI written.

Even if it isn't written by AI, it's certainly written by someone with very little experience on the subject.

  • source
  • parent
  • hideshow 1 child comment