add a way to collect sensor dump in the format the autotests can use.

Change-Id: Iec9be6e858aabd579ea61e48fd5b9d884c980fc3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>