fixed sensor key list generation logic