You need to get smartmontools to run smartctl command:
apt install smartmontools
or
compile from source
git clone https://github.com/smartmontools/smartmontools.git
cd smartmontools/smartmontools
./autogen.sh
./configure --with-nvme-devicescan
make
sudo make install
Before downloading and running the script you can check the script hash:

wget -qO- https://diskcheck.co/smart.sh | md5sum | awk '{print $1}'
3d2eb2f3516bc1b3eb2ba1357de9dc29

wget -qO- https://diskcheck.co/smart-test.sh | md5sum | awk '{print $1}'
6bc155992975d2a50046d0ad2cb6b7c4
Before downloading and running the script you can check if script verification was successful:

wget -qO- https://diskcheck.co/smart.sh | [[ "$(md5sum | awk '{print $1}')" = "3d2eb2f3516bc1b3eb2ba1357de9dc29" ]] && echo "Verification of script was successful." || echo "Verification of script failed."

wget -qO- https://diskcheck.co/smart-test.sh | [[ "$(md5sum | awk '{print $1}')" = "6bc155992975d2a50046d0ad2cb6b7c4" ]] && echo "Verification of script was successful." || echo "Verification of script failed."
Downloading and running the script:
wget -qO- https://diskcheck.co/smart.sh | sh
Before each run of script smart.sh you should also short test your disk(s):
wget -qO- https://diskcheck.co/smart-test.sh | sh
This script will verify if the hash of script smart.sh is correct and only then will run smart.sh (you need to manually download verify-and-run.sh and smart.sh, because each time we update smart.sh the hash will change):
wget -qO- https://diskcheck.co/verify-and-run.sh | sh
Run cron once a day:
crontab -e
0 0 * * * wget -qO- https://diskcheck.co/smart.sh | sh && wget -qO- https://diskcheck.co/smart-test.sh | sh
Latest 45 S.M.A.R.T data:
2023-03-29 13:00:04.9877421400 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4516
2023-03-29 13:00:04.1597336540 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4516
2023-03-29 13:00:03.5037269290 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4575
2023-03-29 13:00:03.0477222520 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12297
2023-03-29 13:00:02.9037207740 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12296
2023-03-29 12:50:04.7557740590 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4515
2023-03-29 12:50:03.9277593660 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4515
2023-03-29 12:50:03.3317487790 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4574
2023-03-29 12:50:02.6637369060 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12295
2023-03-29 12:40:05.9113442460 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4514
2023-03-29 12:40:05.0593405210 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4514
2023-03-29 12:40:04.4353377940 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4573
2023-03-29 12:40:03.8033350320 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12294
2023-03-29 12:30:05.8011674500 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4513
2023-03-29 12:30:04.9491652970 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4513
2023-03-29 12:30:04.3451637740 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4572
2023-03-29 12:30:03.6971621420 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12293
2023-03-29 12:20:05.6810981440 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4512
2023-03-29 12:20:04.8051011630 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4512
2023-03-29 12:20:04.1771033350 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4571
2023-03-29 12:20:03.4891057230 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12292
2023-03-29 12:15:23.9788787250 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sdh/298
2023-03-29 12:15:23.7548809200 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sdg/299
2023-03-29 12:15:23.3188851930 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sdf/299
2023-03-29 12:15:22.8428898560 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sde/299
2023-03-29 12:15:22.4148940610 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sdd/299
2023-03-29 12:15:22.2308958680 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sdc/299
2023-03-29 12:15:21.7709003940 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sdb/298
2023-03-29 12:15:21.2869051660 4028f3ee095aa8338a7ae97f8aefb1b19e5e3e8086bc3a68b5df37471f918464/_dev_sda/299
2023-03-29 12:10:05.0619908530 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4511
2023-03-29 12:10:04.2339846310 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4511
2023-03-29 12:10:03.6619803310 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4570
2023-03-29 12:10:03.0419756720 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12291
2023-03-29 12:00:10.6054577580 a5af1d6ba73ca558560acad8e1a83e768d2ba572ae0449f1fe0c8edd1944296e/_dev_sdb/255
2023-03-29 12:00:08.0854381340 a5af1d6ba73ca558560acad8e1a83e768d2ba572ae0449f1fe0c8edd1944296e/_dev_sda/255
2023-03-29 12:00:07.5294338060 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sdb/1290
2023-03-29 12:00:05.0454144570 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdd/4510
2023-03-29 12:00:05.0294143320 c62b70a6952f68caa6fbcd4189d91f9769c1039161c0330fa38ed95b378abc37/_dev_sda/1290
2023-03-29 12:00:04.9454136770 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sdb/2147
2023-03-29 12:00:04.2334081290 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdc/4510
2023-03-29 12:00:03.8334050130 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12290
2023-03-29 12:00:03.6614036730 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sdb/4569
2023-03-29 12:00:03.4094017090 752d20149d7550c029aede4c0805320d401a1e8ccea426dbc78e57799de1f02f/_dev_sda/2144
2023-03-29 12:00:02.8653974710 90175f5ed5a8e3fda85fcb077dca0435c12e037ec99709e2667796f9c848b50c/_dev_sda/12289
2023-03-29 12:00:02.3893937610 e07114f93c29db6b46c4683637beafdefa2a23d3048cbdb61f3e6d9d97b2547e/_dev_sda/2890