user83251: So I was reading about Simple AutomaticLight Controller using LDR. or with the help of LDRSenso. But I have LM393 Photoresistor (LDR) Sensor I like to know are they same thing or somewhat different. So the way they work is detecting
light intensity and It is associated with both analog output pin and digital output pin labelled as AO and DO respectively on the board.When there is light, the resistance of LDR will become low according to the intensity of light. The greater the intensity of light, the lower the resistance of LDR.
And before that I was reading about Analog Piezoelectricity Ceramic Piezo Vibration Sensor For Arduino
So LDR sensor needs some kind of resister. And Analog Piezoelectricity Ceramic Vibration sensor needs some IC.
Can Anyone be specific to these specific resister and IC for each sensor types. I have them both as module for arduino Uno. I like to code in gcc avr. Thats how I am restricted. And will use C code to control but Can any please be briefly explain this type of resister for LDR sensor and Piezoelectric vibration sensor IC. Just few words to help me relate to some explanation and easily get poped in my mind when ever I hear about these two modules again. So Just some brief on this specific types of resister and IC related to these two modules why they needed how to code, and control through code
These are pictures of two sensors as Chrisl asked


https://www.daraz.pk/products/i140816069-s1300868385.html?urlFlag=true&mp=1
https://www.daraz.pk/products/i162290793-s1329534669.html?urlFlag=true&mp=1

user42015: Both images, that you included, show breakout boards. They are circuit boards (PCB - Printed Circuit Board), which contain all the components, that are needed to connect the corresponding part (in your case a piezo and an Light Dependent Resistor (LDR)). They are called this way, because they are "breaking out" simple output pins from the sensor circuitry for directly connecting them to the Arduino. So instead of having to build the circuit with the pure components you have a simple board, which gives you standard pin headers for connecting to the your Arduino. They are also often called "modules".
That means, that you don't need any additional circuitry or ICs to connect these boards to the Arduino. For the piezo sensor the image even shows the wiring diagram. You can see there, that you don't need any additional parts besides the breakout board, piezo and the Arduino itself. The same applies for the LDR breakout board.
Connections:
For the piezo sensor you have an analog output. Thus you need to connect that to an analog input on the Arduino (A0 to A7) and read the signal with analogRead().
For the LDR breakout board I cannot be sure without a link to the product page, but it seems, that it has a digital output (DO). You can connect it to a digital input of the Arduino. It will switch between HIGH and LOW at a certain threshold brightness, which you can control by using a small screwdriver to rotate the little potentiometer on the board (the blue box with the hole in the middle).

83251: <p>So I was reading about <code>Simple AutomaticLight Controller using LDR.</code> or with the help of LDRSenso. But I have <code>LM393 Photoresistor (LDR) Sensor</code> I like to know are they same thing or somewhat different. So the way they work is detecting</p>
<p><code>light intensity and It is associated with both analog output pin and digital output pin labelled as AO and DO respectively on the board.When there is light, the resistance of LDR will become low according to the intensity of light. The greater the intensity of light, the lower the resistance of LDR.</code></p>
<p>And before that I was reading about <code>Analog Piezoelectricity Ceramic Piezo Vibration Sensor For Arduino</code></p>
<p>So LDR sensor needs some kind of resister. And Analog Piezoelectricity Ceramic Vibration sensor needs some IC.</p>
<p>Can Anyone be specific to these specific resister and IC for each sensor types. I have them both as module for arduino Uno. I like to code in gcc avr. Thats how I am restricted. And will use C code to control but Can any please be briefly explain this type of resister for LDR sensor and Piezoelectric vibration sensor IC. Just few words to help me relate to some explanation and easily get poped in my mind when ever I hear about these two modules again. So Just some brief on this specific types of resister and IC related to these two modules why they needed how to code, and control through code</p>
<p>These are pictures of two sensors as Chrisl asked</p>
<p><a href="https://i.stack.imgur.com/K25Nd.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K25Nd.jpg" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/tXirc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tXirc.jpg" alt="enter image description here" /></a></p>
<p><a href="https://www.daraz.pk/products/i140816069-s1300868385.html?urlFlag=true&amp;mp=1" rel="nofollow noreferrer">https://www.daraz.pk/products/i140816069-s1300868385.html?urlFlag=true&amp;mp=1</a></p>
<p><a href="https://www.daraz.pk/products/i162290793-s1329534669.html?urlFlag=true&amp;mp=1" rel="nofollow noreferrer">https://www.daraz.pk/products/i162290793-s1329534669.html?urlFlag=true&amp;mp=1</a></p>
 42015: <p>Both images, that you included, show breakout boards. They are circuit boards (PCB - Printed Circuit Board), which contain all the components, that are needed to connect the corresponding part (in your case a piezo and an Light Dependent Resistor (LDR)). They are called this way, because they are &quot;breaking out&quot; simple output pins from the sensor circuitry for directly connecting them to the Arduino. So instead of having to build the circuit with the pure components you have a simple board, which gives you standard pin headers for connecting to the your Arduino. They are also often called &quot;modules&quot;.</p>
<p>That means, that you don't need any additional circuitry or ICs to connect these boards to the Arduino. For the piezo sensor the image even shows the wiring diagram. You can see there, that you don't need any additional parts besides the breakout board, piezo and the Arduino itself. The same applies for the LDR breakout board.</p>
<p><strong>Connections:</strong></p>
<p>For the piezo sensor you have an analog output. Thus you need to connect that to an analog input on the Arduino (A0 to A7) and read the signal with <code>analogRead()</code>.</p>
<p>For the LDR breakout board I cannot be sure without a link to the product page, but it seems, that it has a digital output (DO). You can connect it to a digital input of the Arduino. It will switch between HIGH and LOW at a certain threshold brightness, which you can control by using a small screwdriver to rotate the little potentiometer on the board (the blue box with the hole in the middle).</p>
