code to record wind speed

Yes, but 5V is in the acceptable range, so that should be ok, as long as the wires are not too long.