The invention relates to a power supply and data transmission device for pipe network monitoring equipment, which comprises a ball valve, an alternating current to direct current power supply module,a lithium storage battery, a water flow generator, a singlechip microcomputer module, a wireless transmission module, a pagoda-shaped lead sealing screw rod, a water accumulation detection head and anelement box, a connecting pipeline, a locking pipe, a telescopic pipe, a locking nut and a handle rod, the ball valve, the water flow generator, the singlechip microcomputer module, the pagoda-shapedlead sealing screw rod, the connecting pipeline, the locking pipe, the telescopic pipe, the locking nut and the handle rod are installed together, wherein the alternating current to direct current power supply module, the lithium storage battery, the singlechip microcomputer and the wireless transmission module are arranged in the element box, the water accumulation detection head are arranged onan alarm height of a pipeline shaft wall through the a screw rod and a nut; the method includes six steps. The device does not need the supply of external energy, is convenient to install, does not affect the water supply, can effectively utilize the water flow in the pipeline to generate electricity, and saves the use cost.