Ultrasonic Distance sensor - Error

For anyone stumbling upon this (like I did), I solved it this way: