Thanks for the fast reply,
@PaulS
- I'm using a external resister. I have connected my doorSensor (doorswitch) to an analog input since I din't had any digital inputs left on my Arduino board.
- Ok, I won't be using a goto any more.
- What my code needs to do is this.
- I reads the analogInput from the doorSwitich.
- When the Arduino receives a HIGH doorSwitchValue it needs to respond.
- The respond will be that it sends a HIGH value to one of my wireless remote pins.
- But it only needs to send that signal for 1 time, so the wireless remote pin will only be HIGH for 2/1 seconds and then stops sending a signal to my main light.
@tuxduino
When my door is closed, my doorSwitch is sending a 0 value to my Arduino. Can I not use that as a false. And when my door is open (the switch is closed), I receive a value from around 300. Isn't that value not automatically transformed to a true value?
I hope this makes a bit more clear about my problem. :~