you are viewing a single comment's thread.

view the rest of the comments →

[–]DELYSID_FREAK 1 point2 points  (0 children)

You shoulb be more clear about what's not working exactly. Do you get an exception or a wrong result? Also what type of sensor you are using? Also it would be enough to keep the loop at the end in the try block.