Configuring DS18B20 temperature sensor using python on Jetson Nano

Hi, can someone help me configure DS18B20 temperature sensor using python on jetson nano? This is a one wire configurable type of sensor, can this be used to read data? When connected to the board on pin12 and ran simple_input.py, I could see the output “high”, but now I need to read data. How do I go about this?

Have a reference to below topic.