Changing variable type from int to char to enable trigger

as the doc states

Triggers react to certain conditions inside your Arduino Cloud Thing, such as a boolean being true, or a string being assigned a value.

...

## Limitations

Currently, the only variables supported by the trigger feature are:

** Booleans*
** Strings*

so you need to move to one of those type. Can't you handle the triggering condition in your sketch for example and just use a bool?