Fix sensor initialize