I have a Mangoh Yellow simulating a locker. It has a door sensor connected to the GPIO pin 24 port on the IoT board.
The issue is that it generates a lot of events when nobody is not actually touching the switch.
We have tried with different switches in case it was a sensor error. It happens the same. We have also associated a blue led to the sensor that lights up if it is pressed. This light works as expected: turns on when pressing the sensor and turns off otherwise.
The service is defined as follows
An observation is defined. We have assigned a throttle of 1 second (because without throttle the problem is worse as there are multiple events per second).
The observation has an edge action that only writes to the log the value of the event and the value of the associated resource.
Without pressing anything, there are multiple, continuous calls to the event.
Any idea why this could happen?