라즈베리파이 TEMP HUMI 온도 습도 코드 1 #include #include #include #define SHT20_I2C_ADDR0x40 #define SHT20_I2C_CMD_MEASURE_TEMP0xF3 #define SHT20_I2C_CMD_MEASURE_HUMI0xF5 #define SHT20_SOFT_RESET0xFE int fd; int main(void) { float temp = 0.0; float humi = 0.0; int aData[2]; int value; int i; if((fd=wiringPiI2CSetup(SHT20_I2C_ADDR))