ec sensor convert reading to int