updated code bugs on my sensors