I hope you will repair your machine, but it's a good idea to meanwhile look for a cheap spare G3, because you see it's easy to get it out of order by some water.
And this applies to almost all CPAP machines, so it's always good to have a backup machine on hand.
The mainboard itself is mounted in such a location, where water can not get easily. Did you see any obvious water damage on the board - oxidation, etc? Water enters the airways, so most often you will find water in the flow sensor (because it is of the pass-thru type and water, once in the tubes, easily passes through it). If there is enough water, it will also reach to the blower motor. So first you have to disassemble the machine and look for water in the tubes. If there is, then blow the tubes -and- blow the water out of the flow sensor, because in the flow sensor there will be water too. If you use a compressor, don't blow too hard in the flow sensor passage - Sensirion's datasheet says it will withstand 1 bar differential pressure max. Then look in the blower assembly: if there is any water in it, better put it at a hot place (for example at summer put it on the dashboard of a car to stay for several hours) and dry it completely. I think spinning the motor at high RPM with water in it will wash out the lubricant in its bearings and they will start making noise and fail soon. You can open the blower assembly, but after you remove the screws you will find the rubber gasket is sticky and the plastic lids will not come out easily. You have to put some moistener (water, alcohol) on the rubber and pull/pry it gently. So better try to shake most of the water out of it, then put the whole assembly at a really hot place and dry it for several hours.
If the blower doesn't turn at all, it's also possible to have a defect in the blower motor or its driver part. If the machine says "Starting..." on the display, but do not start the blower, then disconnect the blower connector (the one with the three wires, that comes out of the motor) and use a multimeter to check for continuity between the three outputs and the big capacitor nearby. If there is a short circuit between the outputs and the capacitor then you have a blown transistor, but the motor can also be bad (so to overload the circuit and to blow the transistor).
I didn't understand from your explanation what exactly happens, but you said that sometimes it starts and works for a few minutes, that's why I think the motor driver part is working ok.
The small lid at the bottom side of the machine, where you see the USB connector is for the communication module. I don't think you will find any service software for the G3 (actually I think such software doesn't exist), but you see the readings of the pressure and flow sensors displayed directly on the screen. So in this aspect the G3 is much better and much more serviceable, compared to other manufacturers, where you have to use a special top-secret service software just to check the sensors are working ok. On the G3 anytime, without any service software you can compare the displayed values with an external pressure and airflow meters to confirm the machine is working fine and within specs. Here is an example of water in the flow sensor and you see the wrong readings instantly, by just starting the machine:
https://www.reddit.com/r/CPAP/comments/1...g3_broken/
It displays impossible flow readings of 6451 liters/min., and you know that such big amount of air can not pass through the machine.
[url=https://www.reddit.com/r/CPAP/comments/1efk0kd/is_my_cpap_machine_luna_g3_broken/][/url]