HC-SR04 Ultrasonic Sensor Dies After 1.5 Min [SOLVED]

ies5:
//This is an attempt to get the echoPin to reset
if (duration == 0){
pinMode(echoPin, OUTPUT);
digitalWrite(echoPin, LOW);
delayMicroseconds(200);
pinMode(echoPin, INPUT);
}

This seems to be a good way to kill or damage the hcsr04 and your arduino. If the hc echo pin is stuck high and you switch the arduino echo pin to output (default low), you've created a (short) short.