ESP8266 with long wire to sensors

Hi,

Pretty new here; I have wiring in 3 rooms that lead to my garage (avg. not more than 30meters distance).

I want to have temperature and humidity sensors in these rooms and an ESP8266 NodeMCU in the garage.

I have tried this already with the DHT22 (after reading this) sensors but I am getting some very off measurements ~30% of the times.

Not sure if it would help to add any pull up resistors or capacitors.

I am open to change the sensors but not the wiring (and I rather not do wireless).

I have tried this already with the DHT22 (after reading this) sensors but I am getting some very off measurements ~30% of the times.

So did you read the bit in the data sheet that said:-

(2) Communication and signal
1-wire bus is used for communication between MCU and AM2302. ( Our 1-wire bus is specially designed, it's
different from Maxim/Dallas 1-wire bus, so it's incompatible with Dallas 1-wire bus.)

How did you get round that in software considering you said you are new to this?
Did you make sure:-

the interval of whole process must beyond 2 seconds

Did you try increasing it?

A 1 wire bus represents your best chance of collecting data at a distance with no extra components.

Not sure if it would help to add any pull up resistors or capacitors.

To what, the DHT22? If so then no.

If you change your sensors to analogue output sensors then using a 20mA current loop interface is probbly the best at transmitting those analogue readings a distance.

30 meters is a LONG distance for a wired link. The standard 10k pull-up for the DHT22 is likely not enough for reading reliably.

It seems though that your communication is good enough to receive at least something (which is quite something!) but you may be losing data along the way.