Connect the VEML6040 sensor to your Arduino board's standard I2C bus. Check the pinout of your Arduino board to find the correct pins. Important: without additional level shifting the VEML6040 is not ...
Default value for maximum measurement distance is 4m, since HC-SR04 sensor can't measure reliably beyond that. However, if you are using another sensor or if you you don't care about distances larger ...