The Problem to Connect A02YYUW Rasbperry Pi

I just buy this ultrasonic sensor but sample python code does not work with rasbperry pi 4.
Model of sensor : A02YYUW
DataSheet : https://pdf.direnc.net/upload/a02yyuw-s ... asheet.pdf
Errors : Traceback (most recent call last):
File "/home/pi/Desktop/DFRobot_RaspberryPi_A02YYUW-master/raspberry/demo_get_distance.py", line 44, in <module>
distance = board.getDistance()
File "/home/pi/Desktop/DFRobot_RaspberryPi_A02YYUW-master/raspberry/DFRobot_RaspberryPi_A02YYUW.py", line 73, in getDistance
self.measure()
File "/home/pi/Desktop/DFRobot_RaspberryPi_A02YYUW-master/raspberry/DFRobot_RaspberryPi_A02YYUW.py", line 41, in measure
while self.ser.inWaiting() == 0:
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 590, in inWaiting
return self.in_waiting
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 467, in in_waiting
s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
OSError: [Errno 25] Inappropriate ioctl for device


