171
edits
Diannamertz (talk | contribs) mNo edit summary |
Diannamertz (talk | contribs) mNo edit summary |
||
Line 26: | Line 26: | ||
float volts = analogRead(IRpin)*0.00322265624; | float volts = analogRead(IRpin)*0.00322265624; | ||
float distance = 12.21*pow(volts, -1.15); | float distance = 12.21*pow(volts, -1.15); | ||
Serial.println(distance); | Serial.println(distance); | ||
} | } | ||
</source> | </source> |
edits