No, moisture detection on Samsung phones is not a bug. It is a safety feature designed to protect your phone internals from short-circuiting. It may turn into a bug for various other reasons that we have discussed above.