Hi there, I'm working on a project and I need to make Processing to play a video when someone opens a door.
I'm using a magnetic sensor that detects whenever a door is open or closed and I'm using the same code for turning on and off a led with a button from the arduino site (http://arduino.cc/en/Tutorial/Button).
The thing is that I don't know how to read in processing the state of the sensor. Any help?
Thanks!