Longest distance from sensor to microcontroller

Hello everyone!
I am wondering what is the maximum distance from the sensor to the microcontroller? I am using DHT11 sensor, Light sensor LM393, Rain sensor, and IR sensor. I looked up the datasheet but couldn't find it. Hope anyone can tell me what should I do????
Thanks

Hello quocanh10x,
May I know what is the microcontroller you using for this project to help you better

Arduino Mega 2560

Give links to your sensors?

You must give links to the specs of the sensors you plan to use.

DHT11 is well a known sensor.

Lm393 is a voltage comparator chip, not a light sensor.

You gave no details of the other sensors.

The distance can be as far as you need if you use an RF link of some kind. This will require you to use an Arduino at each end of the link.

Moved this post here as it was posted In the wrong section.

There is no simple answer to this question as it depends on what sort of interface you are using, what sort of wire you are using and wht the electromagnetic environment you will be working in.

Normally wiring is good for about two feet in any circumstance. If you want relatable longer communications you need to think about technique to extend the distance like differential buffers.

Hello. If I want to calculate what the limit is, how will I calculate it? I'm thinking in the direction of calculating the attenuation on the conductor but still don't know how to calculate it?

Because I'm in Vietnam, I don't know how to find the link for the English document sensor. So I send these pictures, hope everyone understands


image


image

What distance is the OP looking to separate the sensors?

The OP might want to consider a client/server thingy. I have a humidity sensor in my bathroom. I can read the humidity level in the bathroom from my website. I can adjust the humidity level by turning on the exhaust fan or energizing the humidifier from my web site.

Thus, my question, how far from a central location does the OP want to place the sensors?

Those sensors reading analog values will not want to be far from the microcontroller, as in as close as possible to suppress noise.

Basically you can't because you do not know the information it would take to calculate it.

As I said it would involve you knowing the capacitance of your wiring with respect to the stray capacitances of the rout it took. You would need to know the spectrum and amplitude of any environmental electro magnetic fields, and how your wiring would pick that up.

If all your sensors are using the 1wire interface this should apply:

"So now with a 1k pull-up resistor installed I have a functional temperature probe running at the far end of the 30m tangle of multicore on the floor at my feet."

What distance are you hoping to use?

That DS18B20 is still up on our roof, now attached to a very heat-baked wire that's far from white anymore, and well outlasting the project that was using it