Yes it only happens if i send SMS to it. Sometimes it would work fine, but if I take GSM module off supply and plug it back on it would drop to 0cm when i send SMS after that. So my guess is that GSM module somehow interrupts the work of ultrasonic sensor