Privacy Preservation for IoT used in Smart Building