MQ135 gas sensor alerts or Pir motion

Good evening. Please be patient. I know how to send the data of the mq135 sensor or Pir motion to Cayenne, but I have no idea how to send a Twitter message if the gas level is exceeded or or the presence of a person is detected. Can you help me?

you can use webhook Getting started with webhooks | Docs | Twitter Developer Platform with Trigger Webhooks
or easier way with IFTTT Webhook And IFTTT