The information on the wind velocity distribution in the atmosphere is indispensable for meteorological and environmental studies. For this purpose remote sensing methods such as coherent lidars and wind profilers have been used. These methods, however, require a complex and large set-up of equipment. This paper describes a new method to measure the wind velocity from cloud motion detected with a portable RM-CW lidar and a CCD camera. The RM-CW lidar is used to measure the cloud height. The movement of cloud images recorded with the CCD camera is determined by image processing techniques. A portable RM-CW lidar system with laser diodes has been constructed. New modulation codes are used for this lidar. Under very noisy background conditions such as in daytime, the influence of background noise is reduced by using these new modulation codes, which have shown to be better than the commonly used M-sequence codes.