#define sampling rate in IOT example freezes all functions