Ultrasonic sensor using Arduino Code /* CAR PARKING SENSOR https://electronicassit.blogspot.in ARJUN ARANGIL 9444868542 */ // Define pins for ultrasonic and buzzer int const trigPin = 5; int const echoPin = 6; int const buzzPin = 12; void setup() { pinMode(trigPin, OUTPUT); // trig pin will have pulses output pinMode(echoPin, INPUT); // echo pin should be input to get pulse width pinMode(buzzPin, OUTPUT); // buzz pin is output to control buzzering } void loop() { // Duration will be the input pulse width and distance will be the distance to the obstacle in centimeters int duration, distance; // Output pulse with 1ms width on trigPin digitalWrite(trigPin, HIGH); delay(1); digitalWrite(trigPin, LOW); // Measure the pulse input in echo pin duration = pulseIn(echoPin, HIGH); // Distance is half the duration devided by 29.1 (from data...