We report on measurements of the basic performance of a Micromegas detector for a digital hadronic calorimeter. Electron collection efficiency, energy resolution and gas gain were measured in various mixtures of Ar and CO2. Also the dependence of the gain on environmental variables (pressure, temperature), gas parameters (flow, mixing ratio) and geometry (amplication gap size) is studied. Eventually, predictions on the impact of these variables on the detection efficiency of thin Micromegas detectors are drawn