The original AJ-SR04M datasheet is not always available on major manufacturer sites (e.g., ST, TI) because it's a module. However, you can download it from:
Use a rubber gasket on the sensor head to maintain IP67 rating when installed through a panel. Do not overtighten. aj sr04m datasheet
while True: print(f"get_distance() cm") time.sleep(0.1) The original AJ-SR04M datasheet is not always available
Actual distance = Measured distance * (343.0 / sqrt(331.3 * (1 + T_celsius/273.15))) TI) because it's a module. However