Wireless flow sensor with brass pipe

I was hoping there was a way I could just add some lengths of pipe to create the necessary 6". Seems easier the digging a whole new box. Not sure what’s going on under ground but there’s not much room between the back flow and the sprinkler valves.

Also it seems like having the wireless sensor underground would vastly decrease its range?