¿¹Á¦ÄÚµå´Â ¾Æ·¡¸¦ Âü°íÇØÁÖ½Ã±æ ¹Ù¶ø´Ï´Ù.
int IRpin = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
float volts = analogRead(IRpin)*0.0048828125; // value from sensor * (5/1024) - if running 3.3.volts then change 5 to 3.3
float distance = 65*pow(volts, -1.10);
Serial.println(distance);
delay(100);
}