My 2 wheeled remote controlled ir receiver and hc sr04 robot was working fine but now its taking code of only firstly pressed button but not subsequen

Check battery voltage.

Please, format and paste your code in a "code" block.