@Thomas-Krampe Here an example in python:
# -*- coding: utf-8 -*-
import subprocess
pinNumber = 8
sensorModel = 'DHT11'
proc = subprocess.Popen(['./checkHumidity ' + str(pinNumber) + ' ' + sensorModel], stdout=subprocess.PIPE, shell=True)
(out, err) = proc.communicate()
sensor_data = out.split('\n')
humidity = sensor_data[0]
temperature = sensor_data[1]
print "Humidity:"
print str(humidity) + "%"
print "Temperature:"
print str(temperature) + "°C"