I found that when an ultrasonic sensor goes in front of porous materials like cloth, the value returns as very high. So I singled out that value and made a robot that detects shirts and folds them. This was a fun project to make!
Take one of your shirts and make folding lines where you would usually fold. Use those to find the dimensions of your cardboard flaps.
2
Wire servos and ultrasonic sensor to an arduino using a breadboard or servo shield.
3
Initialize servos and code your own sequence to fold your clothes (whichever order works best for you). For the ultrasonic sensor code, using Serial.print() to find the value your ultrasonic sensor spikes at when pointed at fabric. Once you have that, set