You have the delay set to 500 milliseconds so it will send one then 0.5 seconds later it sends the other. You need to set the timeout larger than the normal time between samples.
Also you do not want to send ON or OFF to the Join node, that should still be connected direct to the sensor.