Vehicle speed sensor

LOL, no its not speeding tickets. Its to fool my speed dependant spoiler into raising at 40mph instead of 95mph.

Do you think that code I wrote above will work?

I dont need it to refresh very quickly but if you can show me how to make the code more responsive or efficient I would really appreciate it