I am using a raspberry pi and a dht22 sensor to control a humidifier...

I am using a raspberry pi and a dht22 sensor to control a humidifier. I need the sensor to be at the opposite end of the room.
how can I get accurate readings from 20ft away. I only have the small 4 inch connector cables to the gpio right now. Would I just need to buy some wire and solder it?

Id like to use the rPi instead of a humidistat because im tight on funds.

Other urls found in this thread:

mysensors.org/
twitter.com/NSFWRedditImage

Place both 20ft away

Let me elaborate. The pi is in another room and I need to run the sensor to my humidifer at the opposite end of the bigger room.

either build yourself a 20ft cable or go this way:
mysensors.org/

how do you connect to your humidifier? if you use a relay, put your pi and dehumidifier close together and just buy the wire that connects to the high voltage to be 20ft

yes I am using relay. The room will be 90% Relative humidity so I want raspberry pi in my aircondition room. The room the humidifer is in is 8'x11'

>The room will be 90% Relative humidity so I want raspberry pi in my aircondition room.
it doesnt fuckin matter, nigger.

okay thanks I will just replace my rpi every other day.

oops i meant
put the pi and the sensor close together

Well no, because it wont die?

Get a cheap (~7$) esp8266 wifi chip. Connect it to your wifi. Program it to read the sensor data and post it to a webserver running on your pi.

I will also have an overhead misters. I need a way to have it connected to monitor,keyboard,mouse I have a program that logs data and graphs it and allows farm control.
The room is in my detached garage. I have a wifi chip for it but Ive tried vnc server and the connection constantly cuts out.

...

you growing 420 bro?

no its illegal here.

You could try using infared signals to relay it

Making a post with temperature and humidity every few seconds will require far less of the network than vnc.
You'll have to figure oit for yourself how to do it though which is hard without any experience I guess.
Depends on what languages you're comfortable in. Afaik the esp toolkit has some built in functions for http posting so thay should be easy.
On the pi you'd run an http server that works with a language you're comfortable with. Nginx with python should be fairly straightforward and lightweight.
You could even build on your project by creating some kind of web interface to control the sustem.

my garage is so far away that the usb wifi antenna I bought hardly connects and I need to leave the garage door open for it to work. I may just have to buy a high powered antenna.

>90% humidity
>not weed
what the fuck man?

Or stop growing pot you degenerate fuck.

buy an (arduino programmable) ESP8266 (~2$) and connect that thing directly to your wifi.

I already have a wifi antenna. The goal is to have all the computer equipment in the low humidity room and a sensor in the high humidity room roughly 16' away.

that's not an antenna, it's a programmable microcontroller with wifi and full TCP/IP stack.

raspberry pi already has wifi? I dont understand what youre getting at.

You can attach a ghetto antenna on the ESP8266. There are online tutorials on it.
Alternatively you could use an Arduino with Ethernet Shield or another Ethernet module and pass an ethernet cable to your garage if you have some.

ESP allows you to send data through wifi. It can act as an access point or connect to an already existing wifi network. Then you could read sensor data with ESP (it's programmable) and send it to your raspberry server through wifi.

fuck off pot head

These sensors are fucking shit. I used them for a project once and its value changed wildly.