Added PATCH function and rerouted and structured sensors
added int for brightnessVal and convert to string
Added some magic, OK?