Fixed issues on HCSR04 sensor component and related sample