Hello!
Basically for test purposes i run:
Code:
interfaceKit.addSensorChangeListener(new SensorChangeListener() {
public void sensorChanged(SensorChangeEvent se) {
switch (se.getIndex()) {
case (tempSensorPort):
System.out.println("Temperature changed: " +se.getValue()+ " C");
and so on...
The temperature comes from a 1125 (Humidity/Temperature) sensor. I have also a lightsensor, and all three are in the switch. However, only humidity and light is causing calling sensorChanged.
If i run interfaceKit.getSensorValue(temperatureSensorPort), it reads the temperature.
So the problem is only that the sensor does not call sensorChanged. Is this a hardware issue?