added correction of Z for wrongly orientated sensors

Signed-off-by: LK <LK@uni>