Skip to content

Instantly share code, notes, and snippets.

@jonmarkgo
Created June 18, 2012 19:11
Show Gist options
  • Save jonmarkgo/2950136 to your computer and use it in GitHub Desktop.
Save jonmarkgo/2950136 to your computer and use it in GitHub Desktop.
sonar tcp
if (c == '5') {
pulse = pulseIn(sonarPin, HIGH);
inches = pulse/147; //convert PWM output from sonar sensor to inches
client.print(String(inches));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment