Ultrasonic density sensor - higher accuracy by minimizing error influences