A medical detector, a control method thereof, and a computer program product are provided. The method is adapted to a medical detector having a light source, an image sensor, and a position sensor, where the position sensor is disposed at a front tip of a speculum of the medical detector. The proposed method includes the following steps. When the speculum of the medical detector is inserted into a human body, sensing is performed by using the position sensor to obtain a sensing signal. Next, whether a sensing value of the sensing signal falls within an alerting range is determined. When the sensing value of the sensing signal falls within the alerting range, a control signal is generated to change a using status of the medical detector.一種醫療檢測裝置及其控制方法與電腦程式產品,此方法適用於具有光源、影像感測器以及位置感測器的醫療檢測裝置,其中位置感測器位於醫療檢測裝置的窺器部的前端。此方法包括下列步驟:當醫療檢測裝置的窺器部進入人體時,利用位置感測器進行感測,以取得感測訊號;判斷感測訊號的感測值是否落於警示範圍內;當感測訊號的感測值落於警示範圍內時,產生控制訊號以改變醫療檢測裝置的使用狀態。S202~S208‧‧‧醫療檢測裝置的控制方法之流程