Hi @raulp, welcome to the MySensors community.
I don't understand what you are trying to do, but the MySensors getting started guide is available from the rocket icon at the top of the forum (https://www.mysensors.org/about )
Developer contribution guidelines are available at https://www.mysensors.org/download/contributing
Library documentation is available at https://www.mysensors.org/apidocs/index.html
Do some debug on the node and on gateway and check if data is actually sent from the node and received by gateway. Also use wait instead of sleep if you are using it as a repeater and relay actuator.