hc-sr04 will not be possible because it needs an exact time measurement (PWM timer pin and edge detection), but I read somewhere that you can use the serial port for simple UART sensors.
Haven't tried it myself. https://robomaster-dev.readthedocs.io/en/latest/python/uart.html
I think you better use a seperate microcontorller to connect and read the hc-sr04 and then report to the S1 using UART.