without knowing the module at all, while you have assigned a variable the T value, you still have to send it to the gateway along with all the other parameters, probably created in function process_button.