Provided is a welding structure which enables external visual checks and has improved stability of bonding properties at a laser weld between a cover and a housing of this flow sensor. This flow sensor is provided with a housing, a cover, a circuit chamber sealed between these and housing electronic components or wiring, and a subpassage through which the fluid flows that is to be sensed, and is characterized in that at least the part near the gate section of the cover that transmits the laser is thinner than the other parts that transmit the laser.