I'm using the sensor to sense when someone puts their hand within the range. The sensor is pointed perpendicular to the ground and within the 95 cm range it works perfectly, however outside of this range the sensor shows no change in values. The thing is this same code works at ranges of up to 300 cm when the sensor is pointed horizontally or upwards, which is very confusing. I put a delay of about 100ms between pulses.