Automatic water shut-off valve

Automatic valve
Homemade Valve parts

Here is all you need. From right side, HST short uptube which lightweight table-tennis ball close if water will upstream when sailingboat is askew. Through another tube bottom side water can flow out in normal tilt positions. And all parts is inside that plactic pipe!

Pre-assemply

Valve is close when ball is up-position. Valve open and water can flow through valve when ball is down-position.