remove door state from code based and just send raw distance into Node-RED and let it determine if door is open/closed/obstructed/car inside etc