Fixed a few issues with the template and added sensor data