BH1750/GY-30 Luminosity Sensor with Cayenne using Raspberry Pi 3 Model B

for triggers have a look at this topic Sending MQTT messages within notification limit and modify the code accordingly.