I am using SHT10 Temperature Sensor on Jetson Nano, I have installed the necessary libraries from the official website here. For the sensor integration, I have followed the datasheet. I have connected the power and ground pins to pin no 4 and 6 of the jetson nano, whereas for the data and clock pin I have connected it to pin no 3 and 5 (SDA, SCL).
The following is the python code
from sht_sensor import Sht
import Jetson.GPIO as GPIO
sht = Sht(3, 5)
print('Temperature', sht.read_t())
print('Relative Humidity', sht.read_rh())
The following error is shown:
ShtCommFailure: Command ACK failed on step-1
This would happen if specified pins are not connected to anything, for example, which is the most likely issue here - probably worth double-checking GPIO-line/pin numbering scheme (usually GPIO numbers are NOT the same as physical pin numbers, and their wiring may vary between board revisions) and whether controlling specified pins via /sys/class/gpio can be measured - e.g. lights up the LED connected to the pin/gnd or shows up on the multimeter display.
Can anyone let me know, how to avoid this issue?