Fixed a memory leak in sensor.cpp
Merge pull request #9 from rkevingibson/master

Memory Leak fix