Added ability to add and update sensors