Added some logging and skipping sending redundant messages to the gpio