hello, i want to interface the dht11 with mq135 sensor but the arduino has just 1 port of 5v and I don't know how to use them both because both of them use 5 volts. do anybody have a solution?
Welcome to the forum
For prototyping use a breadboard to provide multiple 5V connections
hello, I don't mean breadboard connections I mean the Arduino uno connections, I don't know how to use all of the 5v connections of all modules on the breadboard with just 1 pin for 5v and just 2 pins for ground, like I want additional pins
Connect a wire from the Arduino 5V pin to one of the line of sockets along the long edge of the breadboard, preferably the one marked in red if there is one. Do the same with a second long line of breadboard sockets and connect an Arduino GND to it
Connect as many device 5V pins to the same long line of sockets on the breadboard that you connected the Arduino 5V pin to
Do the same with device GND pins and the line of breadboard sockets that you connected an Arduino GND pin to
you mean the edges that have a + - sign on them?
Yes
Do you understand how the sockets on a breadboard are interconnected ?

sorry im a beginner
, but i got what you said and I have to say THANKS IT WORKSS!!!
That's good
Good luck with this and future projects
A word of warning. Some breadboards have a break in the sets of sockets along their edges, like this

It is easy to be caught out and try to input power at one end and use it at the other end without bridging the gap in the centre
Very Very Very Thanks!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.