Nice video I did combine 2 of these sensors for my water tank. One at the low level to start my water pump and the other to stop the pump when the tank is full.
I used the same sensor for measuring the oil (petrol) level for my house central heating. They can work on thicker plastic containers and you can set the sensitivity from their potentiometer
@@KPeyanski i still use it, 2 years later. I have it outside mounted in an electricians box which is attached/glued really close to the outside wall of the tank
Bought the sensor directly after watching this. Exactly what I needed for the project I plan on doing. It's so frustrating how often I must fill the Keurig reservoir. Have the ESP32, have already ordered the pump....the only thing I was missing was a good water level detection method The idea is to have a much larger supply of water underneath the shelf the Keurig sits on. Will just use the pump to refill the Keurig whenever the reservoir gets low. Was considering an ultrasonic sensor and then drilling holes into the lid. But now I won't have to drill anything and it'll look so much better! Thanks so much dude please keep these esp tutorials coming!
@@KPeyanski Not a stupid question at all! It's an approach for growing plants (herbs for us) in water instead of soil. The water tank needs to be refilled every few days and we often forget so it's good to have Home Assistant notifications.
I have a rain barrel for which I want to be able to see in HA if it's below 50% and 25% water level. Is it possible to add 2 such XKC Y25 sensors to one ESP board? If so, which pins would I need to use on the board to solder the sensor cables and what would I need to modify when flashing the firmware? I'm still "dipping my toe" into this whole ESP32 things and trying to find a start...
Awesome!! I was just looking for a water fill sensor for my new bathtub (to stop water flow via electric valve when bathtub is filled to a certain level). Love it!
Please, could you help me once again? I bought a XKC-Y25-V sensor. This sensor has the following wires: Brown (Vcc), Black (Mode), Blue (GND) and Yellow (Output). When black wire has a HIGH level the yellow wire has the same value of voltage Vcc (Brown wire). In my project Vcc (Brown wire) is +9 V so the yellow wire will deliver +9 V if the black wire has a HIGH level. DOUBT 1: What exactly means HIGH level at black wire (Mode)? HIGH level means 3,3 V to 5,0 V or It can be 5 V to 24 V? DOUBT 2: Can I connect +9 V at brown wire (Vcc) and black wire (mode) simultaneously? Thank you very much for your attention.
Hello, I have a water dispenser connected to a 5L jug and with what you shared, I can send a notification when the water is running low. Thank you for sharing knowledge!
You could just use a 12V power supply, a voltage step down converter, a dor sensor (zigbee for example) and this sensor and be done with it :) no need to program anything, just solder and do the same scripting as a door sensor in the home assistant :) But of course, when you need more complex stuff, you can do it with an esp / shelly uni. i will probably use a shelly uni to measure aquarium temperature, water level with this sensor and also control a water pump for auto water top-off. With the shelly uni, as it also works directly with, I believe, 12 to 36 volts, if I a power supply of 12 i don't even need a voltage step down converter.
Thank u very much i was already was looking to this sensor for couple years now but i couldn't figure out how to use it in my house, i am not that smart with these things, so had let it go, but now i will try it
Excelente trabajo saludos desde Colombia, yo hace como 7 meses lo hice con el mismo sensor y unos sensores sonoff de puertas o ventanas, funciona pero definitivamente mucho más práctico y económico usar esphome, gracias 👍🏼
Another excellent tutorial! I've tried to add a second sensor on another pin and I got the error message "Only GPIO16 supports pulldown." Did a bit of googling and I'm still a bit lost: my understanding is there's an internal resistor that gpio16 can use, but no other pins - does that mean I can only get 1 sensor per D1 mini? Or can I add my own resistor, if so what value would I need? Ultimately I'm wanting to fit 6 of these on 1 micro controller, should I be looking at another ESP board? will that be easier? many thanks for all your work mate!
Hey Mister. Great video 🙂 But do you know if it's possible to disable the light diode on the xkc? Now it turns on (on stays on) when it detects liquid... Big thanks from Norway 😎
great video! that's exactly what I was looking for, for my camper's grey water tank, thanks a lot. I'm just wondering how many sensors I can connect to a single ESP32? 3 or 4 would be perfect for me.
You can have 3 or 4 sensors on one esp32. My initial idea was exactly this - to use 3 sensors on one esp32 for the grey waters on my camper, but I still can't find enough time to make it happen. Hopefully this summer I will make it.
I liked your video!! I need to monitor the water level in my home's water tank and I have 2 questions. Please, help me. FIRST QUESTION: Which sensor to use, as I noticed that there are several models (XKC-Y25-V, XKC-Y25-NPN, XKC-Y25-PNP and XKC-Y25-RS485). What is the difference between model V and model PNP? SECOND QUESTION: The distance between this sensor and the panel where the circuit will be (Arduino, buzzer, LCD, etc.) is 15 meters. Will I have losses with this distance? Do I need to install a special cable? THANK YOU SO MUCH!
Just get the PNP sensor if you wish to connect it the same way as me and to use the same ESPHome code. Otherwise you will have to experiment / read and figure it out by yourself
What's the difference between PNP and NPN? Can you use them NPN here instead of PNP?Also how can I add a second sensor ( which pin on the d1)? Great tutorial.
In theory yes, as the max humidity stated by the vendor is 100% which I understood as inside liquid :) But I guess this have to be tested and there is a small risk to damage the sensor.
#LiquidSensorOwned, just a quick question I am using this for my Aquarium to know when to add water , how can I get an SMS instead of notification? Thank you!!!
Great work & Congrats. For SMS-es you have to add such notification integration in HA. I can suggest to check this video of mine - ruclips.net/video/OECAjHMwLro/видео.html If I remember correctly notify.events support SMS-es along with dozen of other messengers
Nice. Might add one to my aquarium. What do you think would be a good solution to affix it to the aquarium outside glass? Would double sided tape work or would that throw off the sensor?
Hi Kiril, I’d like to embark on the ESPHome trip sometime soon, but I have a big question I hope you’ll be able to answer to: is it possible to connect sensors to an ESP32 and use their output to modify the behaviour of the ESP32, without passing from Home Assistant? To be more specific, I’d like to connect a led and a photoresistor to an ESP32, and I’d like to internaly dim the led accordingly to the photoresiststor output, without constantly pulling from Home Assistant the photoresistor output. Is this possible? Thanks for your time.
@@KPeyanski may I suggest you a video on this topic? Documentation isn't super clear, I cannot find any resource online. I ended up coding it in MQTT and it's working, but I'd prefer to switch to ESPHome. Thanks!
Great video as always.. I didn't realise such a sensor existed. Did you get the code for adding a second XKC Y25 sensors to a single wemos d1 mini. that way you could monitor clean,and grey water levels with the same wemos.
@@KPeyanski he’s a smart dude, I think you will like his content. Not smart enough to teach in a second language tho I think think, much respect for you man.
Please don't stop with these ESP tutorials! It's fun to make own sensors :D
Do not worry, I won't! It is fun to me as well :)
Using these many different types of cheap sensors from China is so much fun and indeed very useful. Keep up the good work!
Thanks, will do! Glad you like these videos!
Nice video
I did combine 2 of these sensors for my water tank. One at the low level to start my water pump and the other to stop the pump when the tank is full.
Nice work! On which PINs you have connected the sensor and what ESP board you are using? Also can you share your ESPHome code?
Could you please share your code?
I used the same sensor for measuring the oil (petrol) level for my house central heating. They can work on thicker plastic containers and you can set the sensitivity from their potentiometer
Yes, that is a great use case :) But are you still use it or you switch to something different?
@@KPeyanski i still use it, 2 years later. I have it outside mounted in an electricians box which is attached/glued really close to the outside wall of the tank
Nice, thanks for sharing :) And you connected it to an ESP board or not?
@@KPeyanski the same setup as you! Wemos (the one with the external antenna) plus esphome
Bought the sensor directly after watching this. Exactly what I needed for the project I plan on doing. It's so frustrating how often I must fill the Keurig reservoir. Have the ESP32, have already ordered the pump....the only thing I was missing was a good water level detection method The idea is to have a much larger supply of water underneath the shelf the Keurig sits on. Will just use the pump to refill the Keurig whenever the reservoir gets low. Was considering an ultrasonic sensor and then drilling holes into the lid. But now I won't have to drill anything and it'll look so much better! Thanks so much dude please keep these esp tutorials coming!
You are welcome! Enjoy and don't forget to share the news here when you finish it. Good luck!
I use this sensor for my urine tank of my toilette to avoide an extrem uncomfortable situation when it overflows ☺️
Great, and some ppl are still saying that Smart Home is useless...
Wow, the best smart home youtuber. Thanks for making these videos.
My pleasure! And many thanks for the great compliment :)
Thanks for these videos. I'm always happy to learn new things from you. Thank you for teaching us how to fully utilize the power of Esphome.
My pleasure! I'm super happy that I can be of any help :)
Thank you, this was the first sensor I made and your tutorial was incredibly helpful. I'm using it for hydroponics.
Sorry for the stupid question, but what is hydroponics? Also congratulations and welcome to the club!
@@KPeyanski Not a stupid question at all! It's an approach for growing plants (herbs for us) in water instead of soil. The water tank needs to be refilled every few days and we often forget so it's good to have Home Assistant notifications.
Many thanks for the info! Great application for the liquid sensor and Home Assistant indeed :)
I have a rain barrel for which I want to be able to see in HA if it's below 50% and 25% water level. Is it possible to add 2 such XKC Y25 sensors to one ESP board? If so, which pins would I need to use on the board to solder the sensor cables and what would I need to modify when flashing the firmware? I'm still "dipping my toe" into this whole ESP32 things and trying to find a start...
Awesome!! I was just looking for a water fill sensor for my new bathtub (to stop water flow via electric valve when bathtub is filled to a certain level). Love it!
Glad I could help and great application. You should post a working demo when it is ready. It will be quite interesting :)
Please, could you help me once again? I bought a XKC-Y25-V sensor. This sensor has the following wires: Brown (Vcc), Black (Mode), Blue (GND) and Yellow (Output). When black wire has a HIGH level the yellow wire has the same value of voltage Vcc (Brown wire). In my project Vcc (Brown wire) is +9 V so the yellow wire will deliver +9 V if the black wire has a HIGH level. DOUBT 1: What exactly means HIGH level at black wire (Mode)? HIGH level means 3,3 V to 5,0 V or It can be 5 V to 24 V? DOUBT 2: Can I connect +9 V at brown wire (Vcc) and black wire (mode) simultaneously? Thank you very much for your attention.
Hello, I have a water dispenser connected to a 5L jug and with what you shared, I can send a notification when the water is running low. Thank you for sharing knowledge!
Great application, thanks for sharing and enjoy :)
You could just use a 12V power supply, a voltage step down converter, a dor sensor (zigbee for example) and this sensor and be done with it :)
no need to program anything, just solder and do the same scripting as a door sensor in the home assistant :)
But of course, when you need more complex stuff, you can do it with an esp / shelly uni.
i will probably use a shelly uni to measure aquarium temperature, water level with this sensor and also control a water pump for auto water top-off. With the shelly uni, as it also works directly with, I believe, 12 to 36 volts, if I a power supply of 12 i don't even need a voltage step down converter.
Thank u very much i was already was looking to this sensor for couple years now but i couldn't figure out how to use it in my house, i am not that smart with these things, so had let it go, but now i will try it
Does anyone have tried with like a metal boiler or anything like that?
Excelente trabajo saludos desde Colombia, yo hace como 7 meses lo hice con el mismo sensor y unos sensores sonoff de puertas o ventanas, funciona pero definitivamente mucho más práctico y económico usar esphome, gracias 👍🏼
Can't understand that comment apart from some random words like: Excelente, Colombia & gracias. Hope it is a good comment :)
Very useful, this has been on my wishlist of sensors :)
Another excellent tutorial!
I've tried to add a second sensor on another pin and I got the error message "Only GPIO16 supports pulldown."
Did a bit of googling and I'm still a bit lost: my understanding is there's an internal resistor that gpio16 can use, but no other pins - does that mean I can only get 1 sensor per D1 mini? Or can I add my own resistor, if so what value would I need?
Ultimately I'm wanting to fit 6 of these on 1 micro controller, should I be looking at another ESP board? will that be easier?
many thanks for all your work mate!
Thanks so much
Any time! Did you manage to build one or if not yet do you have such plans?
Hey Mister. Great video 🙂
But do you know if it's possible to disable the light diode on the xkc?
Now it turns on (on stays on) when it detects liquid...
Big thanks from Norway 😎
Oh, I'm wondering if the glass that did not work has a high amount of lead content in the ceramic material? Excellent video!
Good point, but I really have no idea and thanks for the good words about the video!
great video!
that's exactly what I was looking for, for my camper's grey water tank, thanks a lot.
I'm just wondering how many sensors I can connect to a single ESP32? 3 or 4 would be perfect for me.
You can have 3 or 4 sensors on one esp32. My initial idea was exactly this - to use 3 sensors on one esp32 for the grey waters on my camper, but I still can't find enough time to make it happen. Hopefully this summer I will make it.
I liked your video!! I need to monitor the water level in my home's water tank and I have 2 questions. Please, help me. FIRST QUESTION: Which sensor to use, as I noticed that there are several models (XKC-Y25-V, XKC-Y25-NPN, XKC-Y25-PNP and XKC-Y25-RS485). What is the difference between model V and model PNP? SECOND QUESTION: The distance between this sensor and the panel where the circuit will be (Arduino, buzzer, LCD, etc.) is 15 meters. Will I have losses with this distance? Do I need to install a special cable? THANK YOU SO MUCH!
Just get the PNP sensor if you wish to connect it the same way as me and to use the same ESPHome code. Otherwise you will have to experiment / read and figure it out by yourself
how can i connect a ky-016 led to see green and red status?
What's the difference between PNP and NPN? Can you use them NPN here instead of PNP?Also how can I add a second sensor ( which pin on the d1)? Great tutorial.
not sure about what are the differences, just get the same that I'm using so you will know that it will work
@@KPeyanski thanks, how can I add another second sensor? Which pin?
Bro stop making so damn good content XD
Haha, you will stop watching my videos otherwise ;)
Hi my friend, can i put these inside the water?
In theory yes, as the max humidity stated by the vendor is 100% which I understood as inside liquid :) But I guess this have to be tested and there is a small risk to damage the sensor.
#LiquidSensorOwned, just a quick question I am using this for my Aquarium to know when to add water , how can I get an SMS instead of notification? Thank you!!!
Great work & Congrats. For SMS-es you have to add such notification integration in HA. I can suggest to check this video of mine - ruclips.net/video/OECAjHMwLro/видео.html If I remember correctly notify.events support SMS-es along with dozen of other messengers
Nice. Might add one to my aquarium. What do you think would be a good solution to affix it to the aquarium outside glass? Would double sided tape work or would that throw off the sensor?
I'm not sure but I guess it will work, otherwise you can use some not very strong glue and you will be fine
if we want to work with tasmota? what are the parameters?
I guess you have to check that in the Tasmota page. I didn't do that yet
0:57 I know it can be hazardous, but since when is Rakia a toxic liquid? :)
That is hilarious :) You made me laugh... Rakia is not toxic it is kind of medicine, cure... :)
@@KPeyanski I agree completely with you, ice cold or boiled it always helps :)
Hi Kiril,
I’d like to embark on the ESPHome trip sometime soon, but I have a big question I hope you’ll be able to answer to:
is it possible to connect sensors to an ESP32 and use their output to modify the behaviour of the ESP32, without passing from Home Assistant?
To be more specific, I’d like to connect a led and a photoresistor to an ESP32, and I’d like to internaly dim the led accordingly to the photoresiststor output, without constantly pulling from Home Assistant the photoresistor output.
Is this possible?
Thanks for your time.
I think yes, automation and some logic can be added inside the ESPHome code
@@KPeyanski may I suggest you a video on this topic? Documentation isn't super clear, I cannot find any resource online.
I ended up coding it in MQTT and it's working, but I'd prefer to switch to ESPHome.
Thanks!
ESP32 has touch pins, we can turn them into sensors with liquid lavel
Can you share more info about that please?
Great video as always.. I didn't realise such a sensor existed. Did you get the code for adding a second XKC Y25 sensors to a single wemos d1 mini. that way you could monitor clean,and grey water levels with the same wemos.
Thanks, the code shouldn't be much different just another section with another output pin should be added.
whenever I think about sensor you upload video for it can you make hydroponic ec sensor and thx
Very happy to hear that. Can you share what will be the most common use case for the hydroponic ec sensor?
Do you watch the everlanders channel? He’s got some cool stuff you could probably run with.
No, didn’t know about it. I will check it out. Many thanks 🙏
@@KPeyanski he’s a smart dude, I think you will like his content. Not smart enough to teach in a second language tho I think think, much respect for you man.
The links to Ali Express are not working.
disregard.. my network was failing. :)
Thanks for sharing :)