Measure with TF Mini plus

Hello Arduino community,

I´m a beginner in this, so please understand if I make mistakes.

I been fighting with the cheap infrared sensors and I change them for this TF mini plus, it looks like they work good.

In my code it measures the distance, then I try to only print the distance if its under certain number, but for some reason it print the distance above or under the certain number.

Can you help me please?

thank you

TFsensorPrueba.ino (706 Bytes)

picture of the code

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.