I embedded a wire in the small iceberg, when the ship hits the  iceberg, when means the pin

on the head of the ship contact to the wire in the iceberg, the switch turns to on, it’ll light up

the LED on the ship. Then you can use the pressure sensor on the other side of the boat to

control the dimming of the red alarm LED, like using it to send a Morse code something like