The way you have it coded resultCM must equal 4, 11, or 18 exactly in order to trigger an SMS message. This doesn't sound reasonable to me if you are measuring fuel level with an ultrasonic sensor (assumption I make from your code and print statements). More details on your application might help. All we can do is guess.