All Downloads are FREE. Search and download functionalities are using the official Maven repository.

one.microproject.rpi.hardware.gpio.tests.HTU21DTest Maven / Gradle / Ivy

package one.microproject.rpi.hardware.gpio.tests;

import one.microproject.rpi.hardware.gpio.sensors.HTU21DF;

public class HTU21DTest {

	public static void main(String[] args) throws Exception {
		
		System.out.println("HTU21DTest started ...");
		HTU21DF htu21df = new HTU21DF();
		float temp = htu21df.readTemperature();
		float hum  = htu21df.readHumidity();
        System.out.println("temperature: " + temp + " C");
        System.out.println("humidity   : " + hum + " %");
		System.out.println("HTU21DTest done.");
		
	}
		
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy