Log serial data to sd card only when data is received