script for iot platform