Skip to content

Commit 0faf35e

Browse files
authored
Update SHT31.java
1 parent e30c1d6 commit 0faf35e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Java/SHT31.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public static void main(String args[]) throws Exception
3535
double humidity = (((data[3] & 0xFF) * 256) + (data[4] & 0xFF)) * 100.0) / 65535.0;
3636

3737
//Output data to screen
38-
System.out.printf("Temprature in Celsius : %.2f C %n", cTemp);
39-
System.out.printf("Temprature in Fahrenheit : %.2f F %n", fTemp);
40-
System.out.printf("Relative humidity is : %.2f %%RH %n", humidity);
38+
System.out.printf("Temperature in Celsius : %.2f C %n", cTemp);
39+
System.out.printf("Temperature in Fahrenheit : %.2f F %n", fTemp);
40+
System.out.printf("Relative Humidity is : %.2f %%RH %n", humidity);
4141
}
4242
}

0 commit comments

Comments
 (0)