Lua script with GPIO inputs and MQTT outputs