Ultrasonic sensor not responding

Ok, so now i am using different jumper wires and a different breadboard and it seemed to be working fine for a while. I plugged it in and got readings that seemed correct for roughly five seconds before it returned to the ol' 0cm 1149cm. Any ideas on that? Maybe the delay statement needs to be larger?